package com.enhe.gck.com;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class CommController {
    @Resource
    private CommWeighbridge commWeighbridge;
    @Resource
    private CommSmartCard commSmartCard;

    @PostMapping("test")
    public void test(@RequestBody JSONObject user) {
        commWeighbridge.save(user);
        commSmartCard.save(user);
    }
}